<template>
	<view class="container selectuser">
		<myhead :title="mytitle"></myhead>
		<view class="main">
			<view class="searchbox">
				<view class="search">
					<icon type="search" class="searchicon"></icon>
					<input class="searchinput" placeholder="请输入内容"/>
				</view>	
			</view>
			<scroll-view class="userlist" scroll-y="true">
				<view class="item">
					<view class="username">
						临时客户
					</view>
					<view class="select">
						选择
					</view>
				</view>
				<view class="item" v-for="(item,index) in 8" :key = "index">
					<view class="username">
						客户{{index}}
					</view>
					<view class="select">
						选择
					</view>
				</view>
			</scroll-view>
		</view>
		<view class="footer">
			<navigator class="operator" url="../adduser/adduser">
				添加客户
			</navigator>
		</view>
	</view>
</template>

<script>
	import myhead from "../../components/header/header.vue"
	export default {
		data() {
			return {
				mytitle:'选择客户'
			};
		},
		components:{
			myhead
		}
	}
</script>

<style lang="scss" scoped>
	.selectuser{
		color: black;
		display: flex;
		flex-direction: column;
		.main{		
			width: 100%;
			flex: 1;
			display: flex;
			overflow: hidden;
			flex-direction: column;
			.searchbox{
				padding: 10rpx 12rpx;
				box-sizing: border-box;
			}
			.userlist{
				flex: 1;
				overflow: hidden;
				background-color: #EEEEEE;
				box-sizing: border-box;
				padding: 20rpx;
				.item{
					background-color: #FFFFFF;
					border-radius: 18rpx;
					margin-bottom: 15rpx;
					display: flex;
					align-items: center;
					justify-content: space-between;
					padding: 30rpx 20rpx;
					box-sizing: border-box;
					font-size: 30rpx;
					color: #333333;
					.select{
						color: #34C758;
					}
				}
			}
		}
		.footer{
			padding: 15rpx;
			.operator{
				width: 50%;
				margin: 0 auto;
				background-color: #353766;
				text-align: center;
				line-height: 70rpx;
				font-size: 30rpx;
				white-space: nowrap;
				color: #FFFFFF;
				border-radius: 28rpx;
			}
		}
	}
</style>
